#include <string.h>
#include "cleanScan.h"

void cleanString(char *str){
	int charcount=strlen(str);///get total string length
	if(charcount>1 && str[charcount-1]=='\n'){///if next-to-last char is \n
	   str[charcount-1]='\0';///set next-to-last char as EOL
	}
}

